package com.zqxx.examine.portal.persistence;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.zqxx.examine.common.utils.Page;
import com.zqxx.examine.model.exam.Exam;
import com.zqxx.examine.model.exam.ExamHistory;

public abstract interface ExamMapper
{
  public abstract ExamHistory getUserExamHistBySeriNo(@Param("seriNo") String paramString, @Param("approved") int paramInt);
  
  public abstract ExamHistory getUserExamHistByUserIdAndExamId(@Param("userId") int paramInt1, @Param("examId") int paramInt2, @Param("array") int[] paramArrayOfInt);
  
  public abstract List<ExamHistory> getUserExamHistByUserId(@Param("userId") int paramInt, @Param("array") int[] paramArrayOfInt, @Param("page") Page<ExamHistory> paramPage);
  
  public abstract Exam getExamById(int paramInt);
  
  public abstract void addUserExamHist(ExamHistory paramExamHistory);
  
  public abstract ExamHistory getUserExamHistListByHistId(int paramInt);
  
  public abstract List<Exam> getExamListToApply(@Param("userId") int paramInt, @Param("page") Page<Exam> paramPage);
  
  public abstract List<Exam> getExamListToStart(@Param("userId") int paramInt, @Param("array") int[] paramArrayOfInt, @Param("page") Page<Exam> paramPage);
  
  public abstract List<Exam> getExamList(@Param("array") int[] paramArrayOfInt, @Param("page") Page<Exam> paramPage);
}
